package com.ykdl.member.kid.beans;

import java.io.Serializable;
import java.util.ArrayList;

import net.wxxr.http.interfaces.IJsonParser;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.ykdl.member.kid.models.FileMetas;

public class AskDoctorBean implements Serializable ,IJsonParser{

	/**
	 *  "post_actor_display_name": "xiaoxiao1",
            "post_time": 1393397325,
             "has_image": false,
            "is_anonymous": 0,
             "reply_count": 0,
            "source": "clinic",
            "source_id": 0,
            "title": "置顶帖",
            "topic_id": 118,
            "view_count": 0
	 */
	private boolean has_image ;
	private int is_anonymous ;
	private Post_actorBean post_actor ;
	private String post_actor_display_name ;
	private String post_time ;
	private int reply_count ;
	private String title ;
	private String source ;
	private int topic_id ;
	private int view_count ;
	private  DoctorAnswerBean answer ;
	private ArrayList<FileMetas> file_metas ;
	private int digest_level ;
	private ExtraDataBean extra_data ;
	public ExtraDataBean getExtra_data() {
		return extra_data;
	}

	public int getDigest_level() {
		return digest_level;
	}

	public void setDigest_level(int digest_level) {
		this.digest_level = digest_level;
	}

	public String getPost_actor_display_name() {
		return post_actor_display_name;
	}

	public void setPost_actor_display_name(String post_actor_display_name) {
		this.post_actor_display_name = post_actor_display_name;
	}

	public String getPost_time() {
		return post_time;
	}

	public void setPost_time(String post_time) {
		this.post_time = post_time;
	}

	public boolean isHas_image() {
		return has_image;
	}

	public void setHas_image(boolean has_image) {
		this.has_image = has_image;
	}

	public int getIs_anonymous() {
		return is_anonymous;
	}

	public void setIs_anonymous(int is_anonymous) {
		this.is_anonymous = is_anonymous;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getSource() {
		return source;
	}

	public void setSource(String source) {
		this.source = source;
	}

	public int getTopic_id() {
		return topic_id;
	}

	public void setTopic_id(int topic_id) {
		this.topic_id = topic_id;
	}

	public int getReply_count() {
		return reply_count;
	}

	public void setReply_count(int reply_count) {
		this.reply_count = reply_count;
	}

	public int getView_count() {
		return view_count;
	}

	public void setView_count(int view_count) {
		this.view_count = view_count;
	}

	public DoctorAnswerBean getAnswer() {
		return answer;
	}

	public void setAnswer(DoctorAnswerBean answer) {
		this.answer = answer;
	}

	public ArrayList<FileMetas> getFile_metas() {
		return file_metas;
	}

	public void setFile_metas(ArrayList<FileMetas> file_metas) {
		this.file_metas = file_metas;
	}

	public Post_actorBean getPost_actor() {
		return post_actor;
	}

	public void setPost_actor(Post_actorBean post_actor) {
		this.post_actor = post_actor;
	}

	private static final long serialVersionUID = 7194718318656501909L;

	@Override
	public IJsonParser parse(String json) throws Exception {
		// TODO Auto-generated method stub
		Gson   gson = null;
		if(null != json){
			GsonBuilder b = new GsonBuilder();
			gson  = b.create();
			return gson.fromJson(json, AskDoctorBean.class);
		}
		return null;
	}

}
